package com.bingquan.company.mapstruct;

import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.Date;

public class DataUtil {

    public void LocalDateToUdate() {
        LocalDate localDate = LocalDate.now();
        System.out.println("------" + localDate);
        ZoneId zone = ZoneId.systemDefault();
        Instant instant = localDate.atStartOfDay().atZone(zone).toInstant();
        java.util.Date date = Date.from(instant);
        System.out.println("=====" + date);
    }

    public static void main(String[] args) {
//        DataUtil dataUtil = new DataUtil();
//        dataUtil.LocalDateToUdate();


        long l = System.currentTimeMillis() / 1000L;
        System.out.println(l);
    }

}
